package cn.yshujia.domain.vo;

import cn.yshujia.domain.entity.Role;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author YShuJia
 * @create 2024/4/23
 * @description domain
 */


@Data
public class UserVO implements Serializable {
	
	@Schema (description = "主键")
	private Long id;
	
	@Schema (description = "头像")
	private String avatar;
	
	@Schema (description = "用户名")
	private String username;
	
	@Schema (description = "密码")
	private String password;
	
	@Schema (description = "性别 -1女 0保密 1男")
	private String gender;
	
	@Schema (description = "邮箱")
	private String email;
	
	@Schema (description = "经验值")
	private Integer experience;
	
	@Schema (description = "创建时间")
	@JsonFormat (pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date createTime;
	
	@Schema (description = "状态（-1封号，0禁言，1可用）")
	private Boolean status;
	
	private Role role;
	
	private Integer count;
	
	private String token;
}
